<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
		<title><?= strlen($this->app_page_title) ? h($this->app_page_title).' | ' : null ?> LemonStand</title>
		
		<? $this->renderLayout('config_urls') ?>
		<? $this->renderLayout('config_js_engine') ?>
		
		<link rel="stylesheet" href="modules/backend/resources/css/backend.css?<?= module_build('backend') ?>" type="text/css"/>
		<link rel="stylesheet" href="modules/backend/resources/css/print.css?<?= module_build('backend') ?>" type="text/css" media="print"/>
		<link rel="stylesheet" href="phproad/resources/css/phproad.css?<?= module_build('core') ?>" type="text/css"/>
		<?= Phpr_View::includeJavaScript('defaults', module_build('core')) ?>
		<script type="text/javascript" src="phproad/javascript/jquery.js"></script>
		<script type="text/javascript" src="phproad/javascript/jquery.livequery.js"></script>
		<script type="text/javascript">jQuery.noConflict();</script>

		<?= $this->loadResources() ?>
		<script type="text/javascript" src="modules/backend/resources/javascript/backend.js?<?= module_build('backend') ?>"></script>
		<?= Phpr_View::block("head") ?>

		<? $theme = System_ColorThemeParams::get() ?>
		<link id="theme_link" rel="stylesheet" href="modules/backend/themes/<?= $theme->theme_id ?>/css/theme.css?<?= module_build('backend') ?>" type="text/css"/>
	</head>
	<body class="<?= $this->viewDataElement('body_class') ?> <?= Phpr_Html::css_browser_selector()  ?>">
		<div id="header_elements">
		<? $this->renderLayout('header') ?>
		<? $this->renderLayout('tabs') ?>
		</div>

		<div id="content">
			<!--[if IE]><fieldset class="ie_fix"><![endif]-->
			<?= Phpr_View::block("view") ?>
			<!--[if IE]></fieldset><![endif]-->
		</div>
		
		<? $this->renderLayout('footer') ?>
	</body>
</html>